package com.horatio.timer.basic;

import com.horatio.timer.Exception.TimerExecException;
/**
 * 抽象的时间执行类
 * @author hongxiao.z
 * @date   2014-3-10  下午9:02:27
 */
public abstract class AbstractTimerExec implements ITimerExec 
{
	/**
	 * 执行时间
	 */
	private long _execTime;
	
	public long get_execTime() {
		return _execTime;
	}

	@Override
	public final void exec(long nowTime) throws TimerExecException
	{
		
	}
	
	protected abstract long getNextTime();
	
	/**
	 * 子类实现执行
	 * @create	hongxiao.z      2014-3-10 下午9:07:25
	 */
	protected abstract void exec();
}
